package com.caiheng.api.dao.product;

import com.caiheng.api.dao.BaseDao;
import com.caiheng.api.entity.product.OrderAppraise;
import com.caiheng.api.entity.product.ProductAttrValue;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface OrderAppraiseMapper extends BaseDao<OrderAppraise> {

    /**
     * 根据sku id查评论列表
     * @param productSkuList
     * @return
     */
    List<OrderAppraise> selectBySkuIds(@Param("productSkuList") List<ProductAttrValue> productSkuList, @Param("offset") int offset, @Param("pageSize") int pageSize);
}
